package org.shiwen.week9;

public abstract class AbstractMethod {
    public abstract void show();
}

class SubAbstractMethod extends AbstractMethod {
    @Override
    public void show() {
        System.out.println("show");
    }
}

//class SubAbstractMethod2 extends AbstractMethod {
//    public void play(){
//        System.out.println("play");
//    }
//}


class TestAbstractMethod {
    public static void main(String[] args) {
//        AbstractMethod abstractMethod = new AbstractMethod();
        //抽象类不能有实例对象
    }
}